package com.itheima.controller;

import org.springframework.cache.annotation.Cacheable;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/cache")
public class CacheController {

    //@Cacheable(value = "mykey")
    @GetMapping("/get")
    public String get(){
        System.out.println("get...");
        return "MSG";
    }
}
